/**
 * 配置的路由
 */

import VueRouter from 'vue-router';


import Shops from './components/ShopComponents/Shops.vue';
import ShopsCar from './components/ShopComponents/ShopsCar.vue'
import Commodity from './components/ShopComponents/Commodity.vue'
import Data from './components/DataComponents/Data.vue';



var router = new VueRouter({
  routes: [
    {
      path: '/',
      redirect: '/shops',
    },
    {
      path: '/shops',
      component: Shops,
      name: 'shops',
    },
    {
      path: '/shops/Commodity/:id',
      component: Commodity,
      name: 'Commodity',
    },
    {
      path: '/shopscar/:id',
      component: ShopsCar,
      name: ShopsCar
    },
    {
      path: '/data',
      component: Data,
      name: 'data',
    },
  ],
  linkActiveClass: '',
})

// 把路由对象暴露出去
export default router